import java.util.*;

public class Solution {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
       int[] array = {2,1,5,64,2,1,23,55,4,5};
       int max = Integer.MIN_VALUE;
        for (int i = 0; i < array.length; i++) {
            max = Math.max(max,array[i]);
        }
       int[] bucket = new int[max+1];
       int[] newArray = new int[array.length];
        for (int i = 0; i < array.length; i++) {
            int a = array[i];
            bucket[a]++;
        }
        for (int i = 0; i < bucket.length; i++) {
            if (i!=0)
                for (int j = bucket[i]; j >0 ; j--) {
                    stringBuilder.append(i+",");
                }
            }
        System.out.println(stringBuilder.toString().substring(0,stringBuilder.toString().length()-1));
        }

    }

